package com.sun.aop.service.impl;

import com.sun.aop.annotation.RedisAnno;
import com.sun.aop.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @Author 喻湘东
 * @Create 2019-09-22 16:48:01
 */
@Service
public class UserServiceImpl implements UserService {

    @RedisAnno(methodName = "get",key = "get",field = {})
    public String getUserName(String name) {
        return null;
    }

    @RedisAnno(methodName = "set",key = "hgetAll",field = {},expire=10)
    public String hgetAll(String name) {
        return null;
    }

    @RedisAnno(methodName = "set",key = "name",field = {},expire=10)
    public void setUser(String name) {

    }
}
